home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SATAN11.ZIP / SRC / NFS-CHK / MAKEFILE next >
Encoding:
Text File  |  1995-04-08  |  742 b   |  31 lines

  1. SHELL    = /bin/sh
  2. BIN    = ../../bin
  3. OBJECTS    = nfs-chk.o nfs_prot_clnt.o nfs_prot_xdr.o mount_clnt.o mount_xdr.o
  4. MAKES    = nfs_prot.h nfs_prot_clnt.c nfs_prot_svc.c nfs_prot_xdr.c mount.h \
  5.     mount_clnt.c mount_svc.c mount_xdr.c
  6. PROG    = $(BIN)/nfs-chk
  7. CFLAGS    = -O -I. $(XFLAGS)
  8. XFLAGS    = -DAUTH_GID_T=int
  9. RPCGEN    = rpcgen
  10. #LIBS    = -lsocket -lnsl
  11.  
  12. $(PROG):$(OBJECTS)
  13.     $(CC) $(CFLAGS) -o $@ $(OBJECTS) $(LIBS)
  14.  
  15. nfs_prot.h nfs_prot_clnt.c nfs_prot_xdr.c: nfs_prot.x
  16.     $(RPCGEN) $? 2>/dev/null
  17.  
  18. nfs_prot.x:
  19.     cp /usr/include/rpcsvc/nfs_prot.x .
  20.  
  21. mount.h mount_clnt.c mount_xdr.c: mount.x
  22.     $(RPCGEN) $? 2>/dev/null
  23.  
  24. mount.x:
  25.     cp /usr/include/rpcsvc/mount.x .
  26.  
  27. clean:
  28.     rm -f $(PROG) *.o core $(MAKES)
  29.  
  30. nfs-chk.o: mount.h nfs_prot.h
  31.